package com.springboot.demo.design.pattern.decorator;

/**
 * 牛肉装饰者
 *
 * @author supu
 * @date 2019-07-08 16:06
 **/
public class BeefDecorator extends GreensDecorator {

    public BeefDecorator(DecoratorComponent decoratorComponent) {
        super(decoratorComponent);
    }

    @Override
    public void addGreens() {
        decoratorComponent.addGreens();
        System.out.print(" 添加牛肉了");
    }
}
